feat: Resolve best seat across orgs for rate limits#1884
Open
charlesvien wants to merge 3 commits intomainfrom
Open
feat: Resolve best seat across orgs for rate limits#1884charlesvien wants to merge 3 commits intomainfrom
charlesvien wants to merge 3 commits intomainfrom
Conversation
This was referenced Apr 24, 2026
e7dcd4a to
de71216
Compare
65a972f to
5512777
Compare
Contributor
Prompt To Fix All With AIThis is a comment left during a code review.
Path: apps/code/src/shared/types/seat.ts
Line: 20
Comment:
**Unused field added to type**
`organization_name` is added to `SeatData` but is never read in any of the changed files (only `organization_id` is consumed). This violates the simplicity principle of having no superfluous parts. If it's needed for a future feature, it should be added in that PR.
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "Resolve best seat across orgs for rate l..." | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
Users with a pro plan in one org were getting free-tier rate limits in other orgs because the gateway resolved plans per (user_id, team_id) instead of the user's best plan across all orgs.
Changes
How did you test this?
Manually